package com.sudo;

import com.sudo.onload.OnloadSomething;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.stereotype.Component;

/**
 * @author：为道日损 2020-05-06 19:10
 * webSite：https://www.sudo.ren
 */
@Component
public class ApplicationRunnerImpl implements ApplicationRunner {

    @Autowired
    private OnloadSomething onloadSomething;

    @Override
    public void run(ApplicationArguments args) {
        onloadSomething.onLoadAllRoleMenuButtonAuth(null,null);
        onloadSomething.onLoadSysRoleUserToRedis(null);
        onloadSomething.onLoadMenuButtonToRedis(null);
        onloadSomething.onLoadSysInfo();
    }
}
